package com.daedalus.ushtrimePrintimi.tipikeMeYje;

public class drawRomb {

	public static void main(String[] args){
        int no_of_lines=10;
        int i, j, k;
		int count=1;
		for (i=0; i< no_of_lines; i++){	// per pjesen e siperme te rombit
			for(j=0;j<no_of_lines-i-1;j++)	// per hapesirat 
				System.out.printf(" ");
			for(k=0; k<count; k++)			// per yjet
				System.out.printf("*");
			System.out.println();
			count+=2;						// ne cdo rresht te ri ka 2 yje me shume
		}
		count-=4;
		for (i=no_of_lines-1; i>0; i--){	// pjesa e poshtme
			for(j=0;j<no_of_lines-i;j++)
				System.out.printf(" ");		// hapesirat
			for(k=0; k<count; k++)
				System.out.printf("*");		// yjet
			System.out.println();
			count-=2;						// ne cdo rresht 2 yje me pak
		}
	} 
}
